import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home.vue')
  },
  {
    path: '/editor',
    name: 'editor',
    component: () => import('@/views/editor.vue')
  },
  {
    path: '/code-diff',
    name: 'code-diff',
    component: () => import('@/views/code-diff.vue')
  },
  {
    path: '/instruction',
    name: 'instruction',
    component: () => import('@/views/instruction-demo.vue')
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;